import 'package:flutter/material.dart';

class MinePage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _MinePageState();
}

class _MinePageState extends State<MinePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: ListView.separated(
            itemBuilder: (BuildContext context, int index) => ListTile(
                  title: Text('标题 + 行数 $index'),
                  subtitle: Text('副标题 + 行数 $index'),
                ),
            separatorBuilder: (BuildContext context, int index) =>
                index % 2 == 0
                    ? Divider(
                        color: Colors.green,
                        indent: 10,
                        endIndent: 10,
                      )
                    : Divider(
                        color: Colors.red,
                        indent: 10,
                        endIndent: 10,
                      ),
            itemCount: 20));
  }
}
